package org.soc.timesheet.server.domain.service;
import java.util.List;
import org.soc.timesheet.domain.Projects;
import org.soc.timesheet.domain.SubProjects;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.roo.addon.layers.service.RooService;

@RooService(domainTypes = { org.soc.timesheet.domain.SubProjects.class })
public interface SubProjectsService {
	
	public List<SubProjects> findByProject(Projects project);

	public Page<SubProjects> findAll(PageRequest pageRequest);

	public abstract long countAllSubProjectses();


	public abstract void deleteSubProjects(SubProjects subProjects);


	public abstract SubProjects findSubProjects(Integer id);


	public abstract List<SubProjects> findAllSubProjectses();


	public abstract List<SubProjects> findSubProjectsEntries(int firstResult, int maxResults);


	public abstract void saveSubProjects(SubProjects subProjects);


	public abstract SubProjects updateSubProjects(SubProjects subProjects);

	public Page<SubProjects> findByProject(Projects project,
			PageRequest pageRequest);

}
